#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Demo of our ISAPI filter for serving WSGI apps.

When called as a script, this module installs the wsgiref demo as an
ISAPI extension.

"""
from wsgiref.simple_server import demo_app
import wsgi_isapi_ext


def __ExtensionFactory__():
    """ The entry point for our ISAPI extension.

    """
    return wsgi_isapi_ext.WsgiThreadPoolHandler(demo_app)


if __name__=='__main__':
    wsgi_isapi_ext.install()
